﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LINQ_Exercises
{
    public class Student
    {
        private string firstName = null;
        private string lastName = null;
        private string fn = null;
        private string tel = null;
        private string email = null;
        private List<int> marks = null;
        private int groupNumber = default(int);

        public string FirstName
        {
            get { return this.firstName; }
        }
        public string LastName
        {
            get { return this.lastName; }
        }
        public string FN
        {
            get { return this.fn; }
        }
        public string Tel
        {
            get { return this.tel; }
        }
        public string Email
        {
            get { return this.email; }
        }
        public List<int> Marks
        {
            get { return this.marks; }
        }
        public int GroupNumber
        {
            get { return this.groupNumber; }
        }

        public Student(string firstName, string lastName, string fn, string tel, string email, List<int> marks, int groupNumber)
        {
            this.firstName = firstName;
            this.lastName = lastName;
            this.fn = fn;
            this.tel = tel;
            this.email = email;
            this.marks = marks;
            this.groupNumber = groupNumber;
        }

        public override string ToString()
        {
            return String.Format("First Name: {0}\nLastName: {1}\nFN: {2}\nGroup: {3}\nEmail: {4}\n",
                this.firstName, this.lastName, this.fn, this.groupNumber, this.email);
        }
    }
}
